package com.bee.oa.service.sm.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

import com.bee.base.entity.Page;
import com.bee.oa.dao.sm.RoleDao;
import com.bee.oa.domain.sm.Role;
import com.bee.oa.service.sm.RoleService;

public class RoleServiceImpl implements RoleService {

	private RoleDao roleDao;

	public void setRoleDao(RoleDao roleDao) {
		this.roleDao = roleDao;
	}

	@Override
	public Serializable save(Role entity) {
		return roleDao.save(entity);
	}

	@Override
	public void saveAll(Collection<Role> entities) {
		roleDao.saveAll(entities);
	}

	@Override
	public Role get(Long sid) {
		return roleDao.get(sid);
	}

	@Override
	public List<Role> find(String queryString, Object... values) {
		return roleDao.find(queryString, values);
	}

	@Override
	public List<Role> find(Role entity) {
		return roleDao.find(entity);
	}

	@Override
	public List<Role> find(Map<String, String> params) {
		return roleDao.find(params);
	}

	@Override
	public List<Role> findAll() {
		return roleDao.findAll();
	}

	@Override
	public void update(Role entity) {
		roleDao.update(entity);
	}

	@Override
	public void updateAll(Collection<Role> entities) {
		roleDao.updateAll(entities);
	}

	@Override
	public void delete(Role entity) {
		roleDao.delete(entity);
	}

	@Override
	public void delete(Long sid) {
		roleDao.delete(sid);
	}

	@Override
	public void deleteAll(Collection<Role> entities) {
		roleDao.deleteAll(entities);
	}

	@Override
	public Page page(String queryString, int pageNo, int pageSize) {
		return roleDao.page(queryString, pageNo, pageSize);
	}

	@Override
	public Page page(Map<String, String> params, int pageNo, int pageSize) {
		return roleDao.page(params, pageNo, pageSize);
	}

}
